package IOPerations;

import Books.BooksList;

public class ShowOperations implements IOperations{
    //显示书籍
    @Override
    public void work(BooksList booksList) {
        System.out.println("显示书籍....");
        int val = booksList.getVal();
        for (int i = 0; i < val; i++) {
            System.out.println(booksList.getBook(i));
        }
    }
}
